Skip to content

chore(release): record release/1.2 as merged into main (merge commit, not squash) - #619

Merged
dmealing merged 10 commits into
mainfrom
fm/mo-130-lane-release
Nov 21, 2026
Merged

dmealing merged 10 commits into
mainfrom
fm/mo-130-lane-release

Conversation

@dmealing

@dmealing dmealing commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

MERGE THIS PR WITH A MERGE COMMIT. DO NOT SQUASH. DO NOT REBASE.
Its purpose is the second parent of the merge commit d85f3a9b1, which records origin/release/1.2 as an ancestor of main. A squash or rebase drops that parent and the 1.3.0 cut stays refused. After merging, git rev-list --count origin/main..origin/release/1.2 must print 0.

What Changed

  • Adds a subsection to docs/RELEASING.md, under the maintenance-branch section, stating that a squash forward-port does not satisfy the Step 0 ancestry check. The maintenance commit stays "not an ancestor of main" until the branch is recorded as merged.
  • Documents the ancestry-only procedure: after the fixes are confirmed on main by their tests, merge origin/release/1.2 into a main-based branch with git merge -s ours --no-ff. The merge changes no file. It must land as a merge commit, never squashed or rebased. Use -s ours, not a plain merge, so release version bumps and the site payload stay off main. Verify afterwards with git rev-list --count origin/main..origin/release/1.2 (expect 0).
  • The branch also carries merge commit d85f3a9b1 (-s ours, no file change) recording origin/release/1.2 as merged into main. The tree delta against the base is the docs/RELEASING.md addition only.
Validation

Risk Assessment

✅ Low: The merge commit d85f3a9 has no file diff against its first parent (checked), release/1.2's tip 7832034 is an ancestor of HEAD, and the only file change is a RELEASING.md paragraph that matches the intent.

Testing

  • ⏭️ Test - skipped

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⏭️ **Test** - skipped

Step was skipped.

⏭️ **Document** - skipped

Step was skipped.

⏭️ **Lint** - skipped

Step was skipped.

✅ **Push** - passed

✅ No issues found.

… routes (#566)

* fix(python): generated routes hand the repository only the validated input (1.2.1)

The generated FastAPI create, PATCH and PUT handlers validated the body against
<Entity>Create / <Entity>Patch and then passed the RAW body to the repository.
Pydantic ignores undeclared keys and the input models leave out server-owned
fields, so a client-sent id, a readOnly field and a made-up field such as
isAdmin all reached the write. Security fix.

Each handler (plain and TPH per-subtype) now rebinds dto to the keys the input
model validated, at every depth, before any repository call, as the TypeScript
routes do. Undeclared and non-settable keys are dropped silently, never 400'd,
so a client sending an extra harmless field keeps working; values stay the
body's own, so repositories see the same value types as in 1.2.0.

Python package version 1.2.1 only; CHANGELOG entry under Security.
Regression gate: tests/integration/test_generated_router_validated_input.py.

* no-mistakes(document): python routes pass only validated input

* no-mistakes(lint): regenerate showcase site payload for PyPI 1.2.1
…2.x security) (#568)

* fix: generated create routes store only client-settable fields (1.2.x security)

Python 1.2.1 stopped its generated routes from handing raw request input to
the repository. The same audit found related create-path holes in 1.2.0 in
the other four ports; this closes each in its own idiom. Server-owned values
are dropped silently, never answered with 400.

- Java (codegen-spring): create strips a generated id, readOnly and derived
  fields; a TPH per-subtype create also strips the body discriminator and
  sibling-subtype fields.
- Kotlin (codegen-kotlin): create skips readOnly/derived columns; a TPH
  per-subtype create writes only the route subtype's own columns.
- C# (MetaObjects.Codegen): every readOnly property shape gets a private
  setter; create resets a generated id, the TPH discriminator and M:N
  navigations before Add.
- TypeScript (codegen-ts): the update schema omits primary-key fields, so
  PUT/PATCH can no longer re-key a row with an assigned key.

Proof: new shared api-contract scenarios (core + TPH input-server-owned,
TPH foreign discriminator) and a readOnly `role` field in secret-fields, run
in every port's generated lane and the reference lanes; a new `unset`
assertion key in all five harnesses. In-memory test repositories now store
what they are handed, so the scenarios fail on the 1.2.0 generators.

Proposed versions (not published): npm 1.2.2, NuGet 1.2.2, Maven 8.2.2;
PyPI unchanged at 1.2.1. metamodelVersion unchanged.

* fix: keep a @required readOnly field creatable in C# and Java generated create

Pre-gate review follow-ups to the 1.2.x create-input patch:

- C#: the required-key check skips readOnly fields (the private setter
  never binds them), and create validation ignores a violation naming
  only a @required readOnly member, as Java's SERVER_OWNED_ON_CREATE does.
- Java: the create-validation server-owned set covers every DTO component,
  so a nulled readOnly or derived value-object column no longer 400s.
- TypeScript: drop the now-dead PK guard in the update-schema nullable arm
  and list the PK rule in updateSchemaFields' doc comment.

* no-mistakes(review): apply reviewer inline fixes

* no-mistakes(review): Kotlin readOnly create fix + C# reset skip

* no-mistakes(document): docs: finish stale corpus counts from input fix
…ases from release branches (#578)

* fix(csharp): a frozen node's memoized reads are safe across threads

MetaData.Cached stored derived reads in a plain Dictionary. A loaded model
is shared across threads, so two concurrent first reads of one node could
corrupt it, and every later read then threw "Operations that change
non-concurrent collections must have exclusive access". The cache is now a
ConcurrentDictionary; a racing first read keeps the first stored value.

Brought onto release/1.2 from main's fix (a266a51) for the 1.2.2 patch.

* feat(release): cut a patch from a release/<major>.<minor> maintenance branch

release.mjs and finish-release.mjs refused any branch but main, so a patch
on a line main has moved past could not go through its own guarded scripts.
Both now accept release/<major>.<minor> as well (one shared rule in
scripts/lib/release-branch.mjs): the version must be on that branch's own
line, every push goes to that branch, and finish-release's sync check
compares HEAD with origin/<branch>. Every other gate is unchanged.

docs/RELEASING.md gains the maintenance-branch section, including that the
site deploys from the newest vN.N.N tag wherever it was cut.

* no-mistakes(review): gate latest-regression before npm publish; clean unpushed-branch die

* no-mistakes(review): refuse an rc of an already-shipped version

* no-mistakes(document): docs: fix RELEASING.md main-only release claims
The ts-fast lane (and so --quick, --only ts and the no-mistakes Test step)
ran the full Stryker pass over all six metadata files on every run: 10-45
minutes of CPU per gate round on a loaded host, most of that step's wall time.

The step now diffs the stryker.conf.mjs `mutate` list against the merge base
with the base branch (MO_CI_MUTATION_BASE, else origin/$GITHUB_BASE_REF, else
whichever of origin/main and origin/release/* HEAD is closest to) and runs
`stryker run --mutate` on only the changed files. When none changed it prints
a SKIP naming the base. When no base resolves, or stryker.conf.mjs itself
changed, it says so and runs the full pass. Thresholds and concurrency are
unchanged; the list stays in stryker.conf.mjs only.

The full pass stays: the flagless run's mutation lane, a new
`--only mutation` section for release prep and on demand, and conformance.yml
(tags, nightly, dispatch) via MO_CI_MUTATION_SCOPE=full. Stryker's sandbox goes
under DEV_SCRATCH when that names a directory, and is removed afterwards.
* feat(codegen): skip gen when nothing changed, in every port (ADR-0062)

- gen builds a key from the loaded model (each root node in canonical effective
  form, rolled up per package) plus the generators' identity (built engine code,
  config, owned generators, templates, declared extra inputs, project config,
  output-changing flags), before anything renders. When it matches the last
  successful run and every generated file still holds that run's bytes, gen
  renders and writes nothing. --force (Maven: -Dmetaobjects.force=true) turns it
  off; a generator that cannot declare its inputs opts out (cache: false or the
  port's equivalent).
- verify --codegen always renders in CI; locally it may answer "no drift" from
  the key and the manifest, --full forces a render. When it renders, every port
  compares in memory: no rendered temp tree (Java/Kotlin now capture through
  GeneratedFileWriter).
- The hash manifest is loaded once and written once per run, only when it
  changed (TypeScript, Python, C#). Identical bytes are never rewritten in any
  port. Python gen no longer reports unchanged files as written.
- TypeScript runs git merge-file only for a file edited by hand, and deletes its
  temporaries in a finally, under $DEV_SCRATCH when set.
- fixtures/codegen-skip-conformance/cases.json: 25 shared cases run by every port.

* test(python): non-prompt targets rewrite nothing and save no manifest when unchanged

Two targets, four generators: a forced run over unchanged output keeps every
mtime and saves no manifest; a first run saves it once. Also corrects a stale
comment in verify --codegen, which renders in memory.

* no-mistakes(review): apply reviewer inline fixes

* no-mistakes(review): Track unrecorded outputs in the skip key

* no-mistakes(review): Track outside-root outputs in TS skip key

* no-mistakes(review): Store no skip key after refused orphan sweep

* no-mistakes(review): Hash YAML sources when docs-site is wired

* no-mistakes(document): document gen skip and in-memory verify

* no-mistakes(document): document gen skip in llms mirror

* no-mistakes(lint): Update corpora count to 35 in site payload and AGENTS.md

* test(agent-context): regenerate conformance expected copies

The skill references in agent-context/ now describe verify --codegen as
rendering in memory. Refresh the byte-for-byte expected mirrors to match.
…, no content change)

Every code fix on release/1.2 already reached main by squash forward-port
(#566, #568, #578, #585 as #590); its three release version bumps and the
patch-identical commit must not land. This merge records the ancestry so
the minor-cut preflight (scripts/release.mjs) stops refusing the 1.3.0 cut.
It changes no file.
@dmealing dmealing changed the title docs: document ancestry-only merge for squash forward-ports chore(release): record release/1.2 as merged into main (merge commit, not squash) Nov 20, 2026
@dmealing
dmealing merged commit 7a9691d into main Nov 21, 2026
10 checks passed
@dmealing
dmealing deleted the fm/mo-130-lane-release branch November 21, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant